<layout name='Layout/layout_page' />

	<ol class="breadcrumb">
		<li><a href="<{:U('Dispatch/index')}>">配送设置</a></li>
      	<li class="active">列表</li>
    </ol>

	<div class="row">
		<div class="col-md-12">
			<a class="btn btn-sm btn-info" href="<{:U('Dispatch/add')}>"><i class="icon-plus icon-white"></i> 添加</a>
		</div>
	</div>
	
	<p></p>

	<form id="ajaxForm" method="post" action="<{:U('Dispatch/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-hover table-bordered" border="0" cellSpacing="0" cellPadding="0" width="100%">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
		  <TH>id</TH>
		  <TH>名称</TH>
		  <TH>费用</TH>
		  <TH>免运费金额</TH>
		  <TH>状态</TH>
		  <TH>排序</TH>
		  <TH>操作</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>" id="<{$vo.id}>"></td>
			<td><{$vo.id}></td>
            <td><{$vo.name}></td>
            <td><{$vo.money}></td>
            <td><{$vo.freeMoney}></td>
            <td><eq name="vo.show" value="1">开启<else/><font color="red">禁用</font></eq></td>
            <td><{$vo.sort}></td>
			<td>
			  	<a href="<{:U('Dispatch/edit', array('id'=>$vo['id']))}>" class="btn btn-default btn-sm"><i class="glyphicon glyphicon-edit"></i> 编辑</a>
			</td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

</div>


<input type="hidden" id="menu_action" value="goods" />
